Skip to content

hrw4u: Adds QP parameter indexing by name#12853

Open
zwoop wants to merge 2 commits intoapache:masterfrom
zwoop:HRW4UQPIndex
Open

hrw4u: Adds QP parameter indexing by name#12853
zwoop wants to merge 2 commits intoapache:masterfrom
zwoop:HRW4UQPIndex

Conversation

@zwoop
Copy link
Contributor

@zwoop zwoop commented Feb 3, 2026

No description provided.

@zwoop zwoop added this to the 10.2.0 milestone Feb 3, 2026
@zwoop zwoop self-assigned this Feb 3, 2026
@zwoop zwoop added the hrw4u label Feb 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for indexing query parameters by name in the hrw4u tool. The feature allows users to access specific URL query parameter values using the syntax <url_prefix>.query.<param_name>, where the parameter names are case-sensitive and matched without URL decoding.

Changes:

  • Added query parameter indexing support for all URL contexts: inbound.url.query, outbound.url.query, from.url.query, and to.url.query
  • Enhanced the parser to handle multi-colon tags for query parameters (e.g., %{CLIENT-URL:QUERY:version})
  • Added documentation and examples explaining the new query parameter syntax and behavior

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tools/hrw4u/src/tables.py Added mapping entries for query parameter access on all four URL types (inbound, outbound, from, to) with proper validation and section constraints
tools/hrw4u/src/hrw_symbols.py Enhanced multi-colon tag parsing logic to properly handle query parameter tags alongside existing certificate tags
tools/hrw4u/tests/data/conds/query-param.input.txt Test input demonstrating query parameter usage across different contexts and sections
tools/hrw4u/tests/data/conds/query-param.output.txt Expected output showing proper translation to header_rewrite format with QUERY tags
tools/hrw4u/tests/data/conds/query-param.ast.txt AST representation of the parsed query parameter test cases
doc/admin-guide/configuration/hrw4u.en.rst Documentation updates including condition mapping table entries and new example section with usage notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant